-- GENERATED SPELL FOR [King Mrgl-Mrgl] --


function spell0_25197(pUnit, Event) --@Imbue With Understanding,n/a--
pUnit:FullCastSpellOnTarget(45324,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25197', 3000, 1)
end

function spell1_25197(pUnit, Event) --@Water Breathing,n/a--
pUnit:FullCastSpellOnTarget(45328,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25197', 1000, 1)
end

function Sorts_25197(pUnit, Event)
local choix_sorts_25197 = math.random(0, 1)
if choix_sorts_25197 == 0 then
pUnit:RegisterEvent('spell0_25197', 1, 1)
end
if choix_sorts_25197 == 1 then
pUnit:RegisterEvent('spell1_25197', 1, 1)
end
end

function mob25197_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25197', math.random(1500, 3000), 1)
end

function mob25197_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25197_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25197_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25197, 1, 'mob25197_Action')
RegisterUnitEvent(25197, 2, 'mob25197_Leave')
RegisterUnitEvent(25197, 3, 'mob25197_Kill')
RegisterUnitEvent(25197, 4, 'mob25197_Die')
